/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package portal.entidades;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author Jimes
 */
@Entity
@Table(name = "cont_parametros_general", catalog = "sampu", schema = "public")
@NamedQueries({
    @NamedQuery(name = "ContParametrosGeneral.findAll", query = "SELECT c FROM ContParametrosGeneral c"),
    @NamedQuery(name = "ContParametrosGeneral.findByIdeCopag", query = "SELECT c FROM ContParametrosGeneral c WHERE c.ideCopag = :ideCopag"),
    @NamedQuery(name = "ContParametrosGeneral.findByDetalleCopag", query = "SELECT c FROM ContParametrosGeneral c WHERE c.detalleCopag = :detalleCopag"),
    @NamedQuery(name = "ContParametrosGeneral.findByActivoCopag", query = "SELECT c FROM ContParametrosGeneral c WHERE c.activoCopag = :activoCopag"),
    @NamedQuery(name = "ContParametrosGeneral.findByUsuarioIngre", query = "SELECT c FROM ContParametrosGeneral c WHERE c.usuarioIngre = :usuarioIngre"),
    @NamedQuery(name = "ContParametrosGeneral.findByFechaIngre", query = "SELECT c FROM ContParametrosGeneral c WHERE c.fechaIngre = :fechaIngre"),
    @NamedQuery(name = "ContParametrosGeneral.findByHoraIngre", query = "SELECT c FROM ContParametrosGeneral c WHERE c.horaIngre = :horaIngre"),
    @NamedQuery(name = "ContParametrosGeneral.findByUsuarioActua", query = "SELECT c FROM ContParametrosGeneral c WHERE c.usuarioActua = :usuarioActua"),
    @NamedQuery(name = "ContParametrosGeneral.findByFechaActua", query = "SELECT c FROM ContParametrosGeneral c WHERE c.fechaActua = :fechaActua"),
    @NamedQuery(name = "ContParametrosGeneral.findByHoraActua", query = "SELECT c FROM ContParametrosGeneral c WHERE c.horaActua = :horaActua")})
public class ContParametrosGeneral implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "ide_copag", nullable = false)
    private Long ideCopag;
    @Size(max = 50)
    @Column(name = "detalle_copag", length = 50)
    private String detalleCopag;
    @Column(name = "activo_copag")
    private Boolean activoCopag;
    @Size(max = 50)
    @Column(name = "usuario_ingre", length = 50)
    private String usuarioIngre;
    @Column(name = "fecha_ingre")
    @Temporal(TemporalType.DATE)
    private Date fechaIngre;
    @Column(name = "hora_ingre")
    @Temporal(TemporalType.TIME)
    private Date horaIngre;
    @Size(max = 50)
    @Column(name = "usuario_actua", length = 50)
    private String usuarioActua;
    @Column(name = "fecha_actua")
    @Temporal(TemporalType.DATE)
    private Date fechaActua;
    @Column(name = "hora_actua")
    @Temporal(TemporalType.TIME)
    private Date horaActua;
    @OneToMany(mappedBy = "ideCopag")
    private List<PreTramite> preTramiteList;
    @OneToMany(mappedBy = "ideCopag")
    private List<AdqSolicitudCompra> adqSolicitudCompraList;
    @OneToMany(mappedBy = "ideCopag")
    private List<ContParametroModulo> contParametroModuloList;
    @OneToMany(mappedBy = "ideCopag")
    private List<TesRenovacionPoliza> tesRenovacionPolizaList;

    public ContParametrosGeneral() {
    }

    public ContParametrosGeneral(Long ideCopag) {
        this.ideCopag = ideCopag;
    }

    public Long getIdeCopag() {
        return ideCopag;
    }

    public void setIdeCopag(Long ideCopag) {
        this.ideCopag = ideCopag;
    }

    public String getDetalleCopag() {
        return detalleCopag;
    }

    public void setDetalleCopag(String detalleCopag) {
        this.detalleCopag = detalleCopag;
    }

    public Boolean getActivoCopag() {
        return activoCopag;
    }

    public void setActivoCopag(Boolean activoCopag) {
        this.activoCopag = activoCopag;
    }

    public String getUsuarioIngre() {
        return usuarioIngre;
    }

    public void setUsuarioIngre(String usuarioIngre) {
        this.usuarioIngre = usuarioIngre;
    }

    public Date getFechaIngre() {
        return fechaIngre;
    }

    public void setFechaIngre(Date fechaIngre) {
        this.fechaIngre = fechaIngre;
    }

    public Date getHoraIngre() {
        return horaIngre;
    }

    public void setHoraIngre(Date horaIngre) {
        this.horaIngre = horaIngre;
    }

    public String getUsuarioActua() {
        return usuarioActua;
    }

    public void setUsuarioActua(String usuarioActua) {
        this.usuarioActua = usuarioActua;
    }

    public Date getFechaActua() {
        return fechaActua;
    }

    public void setFechaActua(Date fechaActua) {
        this.fechaActua = fechaActua;
    }

    public Date getHoraActua() {
        return horaActua;
    }

    public void setHoraActua(Date horaActua) {
        this.horaActua = horaActua;
    }

    public List<PreTramite> getPreTramiteList() {
        return preTramiteList;
    }

    public void setPreTramiteList(List<PreTramite> preTramiteList) {
        this.preTramiteList = preTramiteList;
    }

    public List<AdqSolicitudCompra> getAdqSolicitudCompraList() {
        return adqSolicitudCompraList;
    }

    public void setAdqSolicitudCompraList(List<AdqSolicitudCompra> adqSolicitudCompraList) {
        this.adqSolicitudCompraList = adqSolicitudCompraList;
    }

    public List<ContParametroModulo> getContParametroModuloList() {
        return contParametroModuloList;
    }

    public void setContParametroModuloList(List<ContParametroModulo> contParametroModuloList) {
        this.contParametroModuloList = contParametroModuloList;
    }

    public List<TesRenovacionPoliza> getTesRenovacionPolizaList() {
        return tesRenovacionPolizaList;
    }

    public void setTesRenovacionPolizaList(List<TesRenovacionPoliza> tesRenovacionPolizaList) {
        this.tesRenovacionPolizaList = tesRenovacionPolizaList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (ideCopag != null ? ideCopag.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ContParametrosGeneral)) {
            return false;
        }
        ContParametrosGeneral other = (ContParametrosGeneral) object;
        if ((this.ideCopag == null && other.ideCopag != null) || (this.ideCopag != null && !this.ideCopag.equals(other.ideCopag))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "portal.entidades.ContParametrosGeneral[ ideCopag=" + ideCopag + " ]";
    }
    
}
